package com.xp.code.servicesImpl;

import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.hibernate.Session;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.xp.code.dao.IAuthsDao;
import com.xp.code.services.IAuthsService;
import com.xp.code.vo.MenuVO;

/**
 * 
 * @author HAHA
 *
 */
@Service("authsService")
@Transactional(rollbackFor=java.lang.Exception.class)
public class AuthsService implements IAuthsService {

	@Resource(name="authsDao")
	private IAuthsDao authsDao;
	
	public AuthsService() {
		
	}

	public IAuthsDao getAuthsDao() {
		return authsDao;
	}

	public void setAuthsDao(IAuthsDao authsDao) {
		this.authsDao = authsDao;
	}

	
	public List<MenuVO> getAuthSInfo(String userid)throws Exception{
		
		return authsDao.getAuthSInfo(userid);
	}
}
